<Gui:ViewControl x:Class="DanielVaughan.Calcium.MessageServiceDemo.MessageServiceDemoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Gui="clr-namespace:DanielVaughan.Calcium.Gui;assembly=DanielVaughan.Calcium.Client"
    xmlns:Module="clr-namespace:DanielVaughan.Calcium.MessageServiceDemo"
    DataContext="{Binding ViewModel, RelativeSource={RelativeSource Self}}">
    <Gui:ViewControl.ViewModel>
        <Module:MessageServiceDemoViewModel />
    </Gui:ViewControl.ViewModel>
    
    <Grid>
        <StackPanel Margin="2" Background="{DynamicResource ControlBackgroundBrush}" 
                    VerticalAlignment="Stretch">
            <ContentControl Padding="10">
                <StackPanel Margin="5">
                    <TextBlock FontSize="14">Message Service Demo</TextBlock>
                    <TextBlock TextWrapping="Wrap" Padding="5">This module is designed to demonstrate the MessageService implementation 
                        on both the client and server. What results is a call to an arbitrary WCF service. 
                        This service then uses the server-side implementation of IMessageService to communicate with the client, 
                        via the client-side implementation of IMessageService.</TextBlock>
                    <Button x:Name="Button_Demonstrate" IsEnabled="{Binding CanDemo}" Click="Button_Click" 
                            Height="25" Width="130" Margin="0, 10, 0, 0" Content="{Binding ButtonMessage}" />
                </StackPanel>
            </ContentControl>
        </StackPanel>	
    </Grid>
</Gui:ViewControl>
